//
//  QuestionaireSectionView.m
//  PigMarket
//
//  Created by 张敬 on 2019/8/13.
//  Copyright © 2019年 pigmarket.oc. All rights reserved.
//

#import "QuestionaireSectionView.h"

@interface QuestionaireSectionView()

@end


@implementation QuestionaireSectionView

#pragma mark - lifecycle methods

- (void)setupUI
{
    self.backgroundColor = mBackgroudColor;
    [self addSubview:self.titleLab];
    [self addSubview:self.detailLab];
}


- (void)setupLayout
{
    self.height = 75;
    {
        _titleLab.size = CGSizeMake(KScreenWidth - 30, 22);
        _titleLab.mj_x = 15;
        _titleLab.mj_y = 15;
    }
    
    {
        _detailLab.size = CGSizeMake(KScreenWidth - 70, 18);
        _detailLab.mj_x = 35;
        _detailLab.mj_y = _titleLab.bottom + 5;
    }
}


#pragma mark - setter methods
#pragma mark - getter methods

- (UILabel *)titleLab{
    
    if (!_titleLab) {
        _titleLab = [UILabel makeLabelWithText:@"" textColor:UIColorFromRGB(0x333333) font:mFont(16) textAliment:0];
    }
    return _titleLab;
}

- (UILabel *)detailLab{
    
    if (!_detailLab) {
        _detailLab = [UILabel makeLabelWithText:@"" textColor:UIColorFromRGB(0x969696) font:mFont(13) textAliment:0];
    }
    return _detailLab;
}

@end
